package com.yuejian_06.yuejian_06.service;

import com.yuejian_06.yuejian_06.bean.FollowListBean;
import com.yuejian_06.yuejian_06.bean.OrderCourseBean;
import com.yuejian_06.yuejian_06.bean.OrderListBean;
import com.yuejian_06.yuejian_06.bean.PostListBean;
import com.yuejian_06.yuejian_06.bean.SuccessBean;
import com.yuejian_06.yuejian_06.bean.UserInfoBean;
import com.yuejian_06.yuejian_06.bean.UserUpdateBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by __ZL__ on 2017/9/28.
 */

public interface MeService {
    //获取用户信息接口
    @GET("userInfo")
    Call<UserInfoBean> getUserById(
            @Query("user_id") String user_id
    );

    @GET("updateuser")
    Call<UserUpdateBean> UpdateUser(
                    @Query("user_id") String user_id,
                    @Query("user_name") String user_name,
                    @Query("user_pwd") String user_pwd,
                    @Query("phonenum") String phonenum,
                    @Query("address") String address
            );

    @GET("postlist")
    Call<List<PostListBean>> getPostList(
            @Query("user_id") String user_id
    );

    @GET("followlist")
    Call<List<FollowListBean>> getFollowList(
            @Query("user_id") String user_id
    );

    @GET("delfollow")
    Call<SuccessBean> getDelFollow(
            @Query("follow_id") String follow_id
    );

    @GET("orderlist")
    Call<List<OrderListBean>> getOrderList(
            @Query("user_id") String user_id
    );

    @GET("ordercourselist")
    Call<List<OrderCourseBean>> getOrderCourseList(
            @Query("user_id") String user_id
    );

    @GET("delorder")
    Call<SuccessBean> getDelOrder(
            @Query("sign_id") String sign_id
    );

    @GET("delpost")
    Call<SuccessBean> getDelPost(
            @Query("post_id") String delpost
    );


}
